package Demo.demo5;

public class Dog extends Animal {
    private String name;
    private String masterphone;//主人的电话

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getMasterphone() {
        return masterphone;
    }

    public void setMasterphone(String masterphone) {
        this.masterphone = masterphone;
    }


    public Dog(ColorEnum color, String kind, Boolean hair, Boolean jueyu, GenderEnum gender, String name, String masterphone) {
        super(color, kind, hair, jueyu, gender);
        this.name = name;
        this.masterphone = masterphone;
    }

    public void play() {
        System.out.println("小狗喜欢玩球");
    }
}
